﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using K.Contract;
using K.EnterpriseLibary;
namespace K.ClientPublic
{
    public static class PackingPublic
    {
        private static ServiceFactory<ICartonProcess> _packingServiceFactory = new ServiceFactory<ICartonProcess>();

        private static ICartonProcess PackingProcess
        {
            get
            {
                return _packingServiceFactory.Service;
            }
        }

        public static void Initialize(ServiceFactoryDelegate<ICartonProcess> factory)
        {
            _packingServiceFactory.Initialize(factory);
        }

        public static Carton GetCarton(Carton carton)
        {
            return PackingProcess.SelectCarton(carton);
        }
    }
}
